package high.concurent.service;

import high.concurent.request.UserLoginRequest;
import high.concurent.request.UserRegistryRequest;
import high.concurrent.utils.JsonData;
import org.springframework.web.multipart.MultipartFile;

public interface UserService {

    /**
     * 用户头像上传
     * @param file
     * @return
     */
    String uploadUserImg(MultipartFile file);

    /**
     * 用户注册
     * @param userRegistryRequest
     * @return
     */
    JsonData registry(UserRegistryRequest userRegistryRequest);

    /**
     * 用户登录
     * @param userLoginRequest
     * @return
     */
    JsonData login(UserLoginRequest userLoginRequest);

    /**
     * 查询用户详情
     * @return
     */
    JsonData getUserDetail();
}
